Package-level declarations

Types

Link copied to clipboard
@SinceKotoolsTypes(version = "1.2")
value class NotBlankString constructor(val value: String) : Comparable<String>

Represents strings containing at least 1 character, excluding whitespaces.

Functions

Link copied to clipboard
@SinceKotoolsTypes(version = "2.0")
infix operator fun String.compareTo(other: NotBlankString): Int

Compares this value lexicographically with the other value for order. Returns 0 if this value equals the other value, a negative number if this value is less than the other value, or a positive number if this value is greater than the other value.

Link copied to clipboard
@SinceKotoolsTypes(version = "1.2")
fun String.toNotBlankString(): NotBlankString

Returns this value as a not blank string, or throws an IllegalArgumentException if this value is blank.

Link copied to clipboard
@SinceKotoolsTypes(version = "1.2")
fun String.toNotBlankStringOrNull(): NotBlankString?

Returns this value as a not blank string, or returns null if this value is blank.